Skip to content

Commit

Permalink
Updated the build
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSanderson committed May 12, 2011
1 parent d1acced commit 155c8d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions build/output/knockout-latest.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,14 +699,13 @@ ko.isWriteableObservable = function (instance) {
ko.exportSymbol('ko.observable', ko.observable);
ko.exportSymbol('ko.isObservable', ko.isObservable);
ko.exportSymbol('ko.isWriteableObservable', ko.isWriteableObservable);

ko.observableArray = function (initialValues) {
if (arguments.length == 0) {
// Zero-parameter constructor initializes to empty array
initialValues = [];
}
if ((initialValues !== null) && (initialValues !== undefined) && !('length' in initialValues))
throw new "The argument passed when initializing an observable array must be an array, or null, or undefined.";
throw new Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");
var result = new ko.observable(initialValues);

ko.utils.arrayForEach(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function (methodName) {
Expand Down Expand Up @@ -1647,7 +1646,7 @@ ko.templateEngine = function () {
ko.exportSymbol('ko.templateEngine', ko.templateEngine);

ko.templateRewriting = (function () {
var memoizeBindingAttributeSyntaxRegex = /(<[a-z]+\d*(\s+(?!data-bind=)[a-z0-9]+(=(\"[^\"]*\"|\'[^\']*\'))?)*\s+)data-bind=(["'])([\s\S]*?)\5/gi;
var memoizeBindingAttributeSyntaxRegex = /(<[a-z]+\d*(\s+(?!data-bind=)[a-z0-9\-]+(=(\"[^\"]*\"|\'[^\']*\'))?)*\s+)data-bind=(["'])([\s\S]*?)\5/gi;

return {
ensureTemplateIsRewritten: function (template, templateEngine) {
Expand Down
6 changes: 3 additions & 3 deletions build/output/knockout-latest.js

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

0 comments on commit 155c8d0

Please sign in to comment.