Skip to content

Commit

Permalink
added ko.es5.getAllObservablesForObject and ko.es5.notifyWhenPresentO…
Browse files Browse the repository at this point in the history
…rFutureArrayValuesMutate methods
  • Loading branch information
archangel-irk committed May 6, 2015
1 parent 6860869 commit a1e41c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions dist/knockout-es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
return obj;
}

// fix for ie
var rFunctionName = /^function\s*([^\s(]+)/;
function getFunctionName( ctor ){
if (ctor.name) {
Expand Down Expand Up @@ -398,6 +399,12 @@
ko.getObservable = getObservable;
ko.valueHasMutated = valueHasMutated;
ko.defineProperty = defineComputedProperty;

// todo: test it, maybe added it to ko. directly
ko.es5 = {
getAllObservablesForObject: getAllObservablesForObject,
notifyWhenPresentOrFutureArrayValuesMutate: notifyWhenPresentOrFutureArrayValuesMutate
};
}

// Determines which module loading scenario we're in, grabs dependencies, and attaches to KO
Expand Down
2 changes: 1 addition & 1 deletion dist/knockout-es5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/knockout-es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
return obj;
}

// fix for ie
var rFunctionName = /^function\s*([^\s(]+)/;
function getFunctionName( ctor ){
if (ctor.name) {
Expand Down Expand Up @@ -398,6 +399,12 @@
ko.getObservable = getObservable;
ko.valueHasMutated = valueHasMutated;
ko.defineProperty = defineComputedProperty;

// todo: test it, maybe added it to ko. directly
ko.es5 = {
getAllObservablesForObject: getAllObservablesForObject,
notifyWhenPresentOrFutureArrayValuesMutate: notifyWhenPresentOrFutureArrayValuesMutate
};
}

// Determines which module loading scenario we're in, grabs dependencies, and attaches to KO
Expand Down

0 comments on commit a1e41c5

Please sign in to comment.