Permalink
Browse files

Updated the build

  • Loading branch information...
SteveSanderson committed May 12, 2011
1 parent d1acced commit 155c8d0fd6abc6217f75519f0521e621e3a21085
Showing with 5 additions and 6 deletions.
  1. +2 −3 build/output/knockout-latest.debug.js
  2. +3 −3 build/output/knockout-latest.js
@@ -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) {
@@ -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) {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 155c8d0

Please sign in to comment.