Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Commit

Permalink
angular version check removed
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonStorm committed Jun 2, 2015
1 parent 01ed69e commit c4c258f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tr-ng-grid",
"version": "3.1.4",
"version": "3.1.5",
"description": "trNgGrid is a feature rich declarative data grid based on the popular AngularJs framework and making use of plain table HTML elements.",
"homepage": "http://github.com/MoonStorm/trNgGrid",
"author": "MoonStorm <[email protected]>",
Expand Down
5 changes: 0 additions & 5 deletions src/js/trNgGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
var TrNgGrid;
(function (TrNgGrid) {
TrNgGrid.version = "3.1.4";
TrNgGrid.minAngularVersion = { major: 1, minor: 3, dot: 1 };
(function (SelectionMode) {
SelectionMode[SelectionMode["None"] = 0] = "None";
SelectionMode[SelectionMode["SingleRow"] = 1] = "SingleRow";
Expand Down Expand Up @@ -893,10 +892,6 @@ var TrNgGrid;
},
controller: ["$compile", "$parse", "$timeout", "$templateCache", GridController],
compile: function (templateElement, tAttrs) {
// check the angular version
if (angular.version.major < TrNgGrid.minAngularVersion.major || angular.version.minor < TrNgGrid.minAngularVersion.minor || angular.version.dot < TrNgGrid.minAngularVersion.dot) {
throw "This version of the Angular library is not supported by trNgGrid.";
}
// at this stage, no elements can be bound
angular.forEach(templateElement.children(), function (childElement) {
childElement = angular.element(childElement);
Expand Down
6 changes: 0 additions & 6 deletions src/js/trNgGrid.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use strict";
module TrNgGrid {
export var version = "3.1.4";
export var minAngularVersion = { major: 1, minor: 3, dot: 1 };

export enum SelectionMode {
None,
Expand Down Expand Up @@ -1213,11 +1212,6 @@ module TrNgGrid {
},
controller: ["$compile", "$parse", "$timeout", "$templateCache", GridController],
compile: (templateElement: JQuery, tAttrs: Object) => {
// check the angular version
if (angular.version.major < minAngularVersion.major || angular.version.minor < minAngularVersion.minor || angular.version.dot < minAngularVersion.dot) {
throw "This version of the Angular library is not supported by trNgGrid.";
}

// at this stage, no elements can be bound
angular.forEach(templateElement.children(),(childElement: JQuery) => {
childElement = angular.element(childElement);
Expand Down
5 changes: 0 additions & 5 deletions trNgGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
var TrNgGrid;
(function (TrNgGrid) {
TrNgGrid.version = "3.1.4";
TrNgGrid.minAngularVersion = { major: 1, minor: 3, dot: 1 };
(function (SelectionMode) {
SelectionMode[SelectionMode["None"] = 0] = "None";
SelectionMode[SelectionMode["SingleRow"] = 1] = "SingleRow";
Expand Down Expand Up @@ -893,10 +892,6 @@ var TrNgGrid;
},
controller: ["$compile", "$parse", "$timeout", "$templateCache", GridController],
compile: function (templateElement, tAttrs) {
// check the angular version
if (angular.version.major < TrNgGrid.minAngularVersion.major || angular.version.minor < TrNgGrid.minAngularVersion.minor || angular.version.dot < TrNgGrid.minAngularVersion.dot) {
throw "This version of the Angular library is not supported by trNgGrid.";
}
// at this stage, no elements can be bound
angular.forEach(templateElement.children(), function (childElement) {
childElement = angular.element(childElement);
Expand Down
2 changes: 1 addition & 1 deletion trNgGrid.min.js

Large diffs are not rendered by default.

0 comments on commit c4c258f

Please sign in to comment.