mirror of
https://github.com/flynx/features.js.git
synced 2025-10-30 02:40:11 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fd61609d49
commit
91cd7c51a4
@ -733,7 +733,6 @@ var FeatureSetProto = {
|
|||||||
f = that[n]
|
f = that[n]
|
||||||
}
|
}
|
||||||
// feature not defined or is not a feature...
|
// feature not defined or is not a feature...
|
||||||
//if(f == null || !(f instanceof Feature)){
|
|
||||||
if(f == null){
|
if(f == null){
|
||||||
data.missing
|
data.missing
|
||||||
&& data.missing.indexOf(n) < 0
|
&& data.missing.indexOf(n) < 0
|
||||||
@ -929,7 +928,6 @@ var FeatureSetProto = {
|
|||||||
f = that[n]
|
f = that[n]
|
||||||
}
|
}
|
||||||
// feature not defined or is not a feature...
|
// feature not defined or is not a feature...
|
||||||
//if(f == null || !(f instanceof Feature)){
|
|
||||||
if(f == null){
|
if(f == null){
|
||||||
data.missing
|
data.missing
|
||||||
&& data.missing.indexOf(n) < 0
|
&& data.missing.indexOf(n) < 0
|
||||||
@ -1340,8 +1338,7 @@ var FeatureSetProto = {
|
|||||||
// shorthand for: Feature(<feature-set>, ...)
|
// shorthand for: Feature(<feature-set>, ...)
|
||||||
// XXX should this return this?
|
// XXX should this return this?
|
||||||
Feature: function(){
|
Feature: function(){
|
||||||
return this.__feature__.apply(null, [this].concat(args2array(arguments)))
|
return this.__feature__.apply(null, [this].concat(args2array(arguments))) },
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1349,6 +1346,7 @@ var FeatureSet =
|
|||||||
module.FeatureSet = object.makeConstructor('FeatureSet', FeatureSetProto)
|
module.FeatureSet = object.makeConstructor('FeatureSet', FeatureSetProto)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
var Features =
|
var Features =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user